Repetier-Firmware  1.0.0
motion.cpp File Reference
#include "Repetier.h"

Macros

#define minTime   45000L
 

Variables

millis_t previousMillisCmd = 0
 
millis_t maxInactiveTime = MAX_INACTIVE_TIME * 1000L
 
millis_t stepperInactiveTime = STEPPER_INACTIVE_TIME * 1000L
 
long baudrate = BAUDRATE
 Communication speed rate. More...
 
int maxadv2 = 0
 
float maxadvspeed = 0
 
uint8_t pwm_pos [NUM_PWM]
 
volatile int waitRelax = 0
 
int lastblk = -1
 
int32_t cur_errupd
 

Macro Definition Documentation

◆ minTime

#define minTime   45000L

Variable Documentation

◆ baudrate

long baudrate = BAUDRATE

Communication speed rate.

◆ cur_errupd

int32_t cur_errupd

◆ lastblk

int lastblk = -1

Moves the stepper motors one step. If the last step is reached, the next movement is started. The function must be called from a timer loop. It returns the time for the next call. This is a modified version that implements a Bresenham 'multi-step' algorithm where the dominant Cartesian axis steps may be less than the changing dominant delta axis. Moves the stepper motors one step. If the last step is reached, the next movement is started. The function must be called from a timer loop. It returns the time for the next call.

Normal linear algorithm

◆ maxadv2

int maxadv2 = 0

◆ maxadvspeed

float maxadvspeed = 0

◆ maxInactiveTime

millis_t maxInactiveTime = MAX_INACTIVE_TIME * 1000L

◆ previousMillisCmd

millis_t previousMillisCmd = 0

◆ pwm_pos

uint8_t pwm_pos[NUM_PWM]

◆ stepperInactiveTime

millis_t stepperInactiveTime = STEPPER_INACTIVE_TIME * 1000L

◆ waitRelax

volatile int waitRelax = 0